﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Web;

namespace Archives
{
    public class GW_ReceiveFileMap : EntityTypeConfiguration<GW_ReceiveFile>
    {
        public GW_ReceiveFileMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);
            // Properties
            //主键Id                
            this.Property(t => t.Id)
                .IsRequired()
                .HasMaxLength(36)
                .HasColumnName("Id");
            //文件编号                
            this.Property(t => t.DocumentNumber)
                .HasMaxLength(50)
                .HasColumnName("DocumentNumber");
            //文件标题                
            this.Property(t => t.DocumentTitle)
                .HasMaxLength(200)
                .HasColumnName("DocumentTitle");
            //收/发文日期                
            this.Property(t => t.ClosedOrHairTime)
                .HasColumnName("ClosedOrHairTime");
            //创建时间                
            this.Property(t => t.CreatedTime)
                .IsRequired()
                .HasColumnName("CreatedTime");
            //创建者                
            this.Property(t => t.CreatedBy)
                .IsRequired()
                .HasMaxLength(50)
                .HasColumnName("CreatedBy");
            //更新时间                
            this.Property(t => t.UpdatedTime)
                .IsRequired()
                .HasColumnName("UpdatedTime");
            //                
            this.Property(t => t.UpdatedBy)
                .IsRequired()
                .HasMaxLength(50)
                .HasColumnName("UpdatedBy");
            //工作流程Id                
            this.Property(t => t.MessageId)
                .IsRequired()
                .HasMaxLength(36)
                .HasColumnName("MessageId");
            //工作流Id                
            this.Property(t => t.WorkFlowId)
                .IsRequired()
                .HasMaxLength(36)
                .HasColumnName("WorkFlowId");
            //来文单位                
            this.Property(t => t.ReceivedDocumentUnit)
                .HasMaxLength(50)
                .HasColumnName("ReceivedDocumentUnit");
            //序列名称                
            this.Property(t => t.SequenceName)
                .HasMaxLength(200)
                .HasColumnName("SequenceName");
            //序列编号                
            this.Property(t => t.SequenceNumber)
                .HasMaxLength(200)
                .HasColumnName("SequenceNumber");
            //序列编号                
            this.Property(t => t.IsFirstLoading)
                .HasColumnName("IsFirstLoading");
            // Table & Column Mappings
            this.ToTable("GW_ReceiveFile");


        }
    }
}